package com.itheima.junit2;

import org.junit.Assert;

public class Test {
    @org.junit.Test
    public void testReverse() {
        String a = StringUtils.reverse("abcd");
        System.out.println(a);

        //断言方法判断是否符合预期
        String b = "dcba";
        Assert.assertEquals("本轮测试异常，业务逻辑存在问题",b,a);
    }

    @org.junit.Test
   public void testreverse2() {
       String b = StringUtils.reverse("");
       System.out.println(b);
   }
@org.junit.Test
   public void testreverse3() {
    String c = StringUtils.reverse(null);
    System.out.println(c);
}


}
